package top.lfyao.designpattern.details.template;

/**
 *  模板方法客户端
 */
public class TemplateClient {
    public static void main(String[] args){
        AbstractTemplate abstractTemplate;
        abstractTemplate =new ConcreteClassA();
        abstractTemplate.templateMethod();

        abstractTemplate=new ConcreteClassB();
        abstractTemplate.templateMethod();
        }
}
